<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/black/easyui.css"/>
<script type="text/javascript"
	src="<c:url value="/js/common.js"/>"></script>
<title>Insert title here</title>

</head>
<body>


<script type="text/javascript">
	$(function(){
		$("#lwc_customer_source_table").datagrid({
			fit:true,
			border:false,
			fitColumns:true,
			url:'Customersource_json',
			method:'get',
			singleSelect:true,
			pagination:true,
			columns:[[     
            {field:'xx',title:'',width:1,checkbox:true},
	        {field:'csId',title:'编号',width:1},       
	        {field:'csDefault',title:'缺省',width:1,formatter: function(value,row,index){ if(value==0){return '默认';}
         							 if(value==1){return '其他';}}},    
	        {field:'csStar',title:'启用',width:1,formatter: function(value,row,index){if(value==0){return '已启用';}
         							else if(value==1){return '未启用';}}},    
			{field:'csContent',title:'选项内容',width:1},
			{field:'csSort',title:'排序',width:1}
	       ]]  
		});		
	})
</script>
    <!-- 数据表格 -->
	<table id="lwc_customer_source_table" class="easyui-datagrid">
	</table>
</body>
</html>